package com.ruoyi.studyroom.bpm.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产通知单业务对象 bpm_production_notice
 *
 * @author hubo_dxy
 * @date 2025-07-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("生产通知单业务对象")
public class BpmProductionNoticeBo extends BaseEntity {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", required = true)
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 通知单号
     */
    @ApiModelProperty(value = "通知单号", required = true)
    @NotBlank(message = "通知单号不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonProperty("dNo") // 加上这个确保映射
    private String dNo;

    /**
     * 版本
     */
    @ApiModelProperty(value = "版本", required = true)
    @NotBlank(message = "版本不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonProperty("dVer") // 加上这个确保映射
    private String dVer;

    /**
     * bpm中通知单审核状态
     */
    @ApiModelProperty(value = "bpm中通知单审核状态", required = true)
    @NotBlank(message = "bpm中通知单审核状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bpmCheckState;


    /**
     * 通知单确认状态： toConfirm 、confirmed
     */
    @ApiModelProperty("通知单确认状态")
    private String confirmState;


    /**
     * 交易方
     */
    @ApiModelProperty(value = "交易方", required = true)
    @NotBlank(message = "交易方不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonProperty("dSupplier") // 加上这个确保映射
    private String dSupplier;

    /**
     * bpm中下单日期
     */
    @ApiModelProperty(value = "bpm中下单日期", required = true)
    @NotNull(message = "bpm中下单日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date bpmSqdate;

    /**
     * bpm中key值
     */
    @ApiModelProperty(value = "bpm中key值", required = true)
    @NotNull(message = "bpm中key值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long bpmBusinesskey;

    /**
     * bpm中业务类型
     */
    @ApiModelProperty(value = "bpm中业务类型", required = true)
    @NotBlank(message = "bpm中业务类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bpmBusinesstype;

    /**
     * bpmz中附件路径url
     */
    @ApiModelProperty(value = "bpmz中附件路径url", required = true)
    @NotBlank(message = "bpmz中附件路径url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bpmAttachmentUrl;


}
